﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace SD.Common.Logging
{
    public class SDLogging
    {
        ILog logger;

        public SDLogging()
        {
            log4net.Config.XmlConfigurator.Configure();
            logger = LogManager.GetLogger("Logger");
        }

        /// <summary>
        /// Log error of the system to a logging store
        /// </summary>
        /// <param name="message">The message describes error has been occured</param>
        public void LogError(string message)
        {
            logger.Error(message);
        }
    }
}
